home *** CD-ROM | disk | FTP | other *** search
- Path: fsgm01.fnal.gov!not-for-mail
- From: b91926@fsgm01.fnal.gov (David Sachs)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Converting integer to char/string?
- Date: 5 Feb 1996 13:11:21 -0600
- Organization: FERMILAB, Batavia, IL
- Message-ID: <4f5kop$77c@fsgm01.fnal.gov>
- References: <4f5ehf$48i@brtph500.bnr.ca>
- Reply-To: sachs@fnal.fnal.gov
- NNTP-Posting-Host: fsgm01.fnal.gov
- X-Newsreader: NN version 6.5.0 #4 (NOV)
-
- Gilbert Banks <gilbertb@bnr.ca> writes:
-
- >What is the function and header for converting an integer to char or string?
- >I think the header is <stdlib.h>.
-
- You can use sprintf to convert a number to a string.
-
- I do not know whar you mean by converting an integer to a character. If
- you want the character whose numeric value corresponds to the integer,
- you can simply do a direct assignment.
- --
- * IRS, IRS, lord of the federal tax, checking all income and every deduction, *
- * mailing out form 10 40, penalizing noncompliers, regulating, and auditing. *
- David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
- Voice: 1 708 840 3942 Deparment Fax: 1 708 840 3785
-